<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"> <style>
	.KEYW {color: #933;}
	.COMM {color: #bbb; font-style: italic;}
	.NUMB {color: #393;}
	.STRN {color: #393;}
	.REGX {color: #339;}
	.line {border-right: 1px dotted #666; color: #666; font-style: normal;}
	</style></head><body><pre><span class='line'>  1</span> <span class="COMM">/** @fileOverview 表格控件的入口文件，命名空间
<span class='line'>  2</span> * @author &lt;a href="mailto:dxq613@gmail.com">董晓庆 旺旺：dxq613&lt;/a>  
<span class='line'>  3</span> * @version 1.0.1  
<span class='line'>  4</span> */</span><span class="WHIT">
<span class='line'>  5</span> </span><span class="NAME">KISSY.add</span><span class="PUNC">(</span><span class="STRN">"gallery/grid/1.0/index"</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">S</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">util</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">store</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">grid</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">editGrid</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">loadMask</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'>  6</span> 
<span class='line'>  7</span> </span><span class="WHIT">	</span><span class="COMM">/**
<span class='line'>  8</span> 	* @namespace 表格的命名空间
<span class='line'>  9</span> 	* @name Grid
<span class='line'> 10</span> 	* @description 
<span class='line'> 11</span> 	* 主要包括：&lt;br>
<span class='line'> 12</span> 	* 1. Util 帮助类&lt;br>
<span class='line'> 13</span> 	* 2. Store 数据缓冲类，缓存数据，通过事件跟其他控件交互&lt;br>
<span class='line'> 14</span> 	* 3. Grid 表格控件&lt;br>
<span class='line'> 15</span> 	* 4. EditGrid 可编辑控件&lt;br>
<span class='line'> 16</span> 	* 5. LoadMask 加载遮罩层，当加载数据时显示Loading
<span class='line'> 17</span> 	*/</span><span class="WHIT">
<span class='line'> 18</span> </span><span class="WHIT">	</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">Grid</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'> 19</span> </span><span class="WHIT">        </span><span class="NAME">Util</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="NAME">util</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'> 20</span> </span><span class="WHIT">        </span><span class="NAME">Store</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="NAME">store</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'> 21</span> </span><span class="WHIT">        </span><span class="NAME">Grid</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="NAME">grid</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'> 22</span> </span><span class="WHIT">        </span><span class="NAME">EditGrid</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="NAME">editGrid</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'> 23</span> </span><span class="WHIT">        </span><span class="NAME">LoadMask</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="NAME">loadMask</span><span class="WHIT">
<span class='line'> 24</span> </span><span class="WHIT">    </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 25</span> </span><span class="WHIT">    </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">Grid</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 26</span> </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'> 27</span> </span><span class="WHIT">    </span><span class="NAME">requires</span><span class="PUNC">:</span><span class="PUNC">[</span><span class="STRN">"./util"</span><span class="PUNC">,</span><span class="STRN">"./store"</span><span class="PUNC">,</span><span class="STRN">"./grid"</span><span class="PUNC">,</span><span class="STRN">"./editGrid"</span><span class="PUNC">,</span><span class="STRN">"./loadMask"</span><span class="PUNC">]</span><span class="WHIT">
<span class='line'> 28</span> </span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span></pre></body></html>